import { ApiProperty } from '@nestjs/swagger';
import { IsNotEmpty, MaxLength } from 'class-validator';

export class CreateInformDto {
  @IsNotEmpty({
    message: '消息内容不能为空',
  })
  @MaxLength(1024, {
    message: '消息内容最长为 1024 字符',
  })
  @ApiProperty({ description: '消息内容', required: true })
  content: string;
}
